package agenzia.it.activity;

import agenzia.it.R;
import android.app.TabActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class MenuActivity extends  TabActivity  {
	TabHost mTabHost;

	 /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        mTabHost = getTabHost();
        
        TabSpec tabMappa = mTabHost.newTabSpec("tabMappa");
        tabMappa.setIndicator("Diretta");
        Context ctx = this.getApplicationContext();
        Intent intent = new Intent(ctx, MappaActivity.class);
        tabMappa.setContent(intent);
        mTabHost.addTab(tabMappa);
        
        
        TabSpec tabMappaStorico = mTabHost.newTabSpec("tabMappaStorico");
        tabMappaStorico.setIndicator("Storico");
        intent = new Intent(ctx, MappaStoricoActivity.class);
        tabMappaStorico.setContent(intent);
        mTabHost.addTab(tabMappaStorico);
        
        mTabHost.setCurrentTab(0);

    }
    
    
}
